/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package thinkinginjava.svn.strings.regularexpressions;

/**
 *
 * @author evenpet
 */
public class IntegerMatch {
    public static void main(String[] args) {
        System.out.println("-12345".matches("-?\\d+"));
        System.out.println("5678".matches("-?\\d+"));
        System.out.println("+911".matches("-?\\d+"));
        System.out.println("+911".matches("(-|\\+)\\d+"));        
    }
}
